package com.itheima.reggie.mapper;

import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealDishMapper {



    void saveWithDish(@Param("collect") List<Object> collect);
    void deleteByIdsWithDish(@Param("ids") List<Long> ids);
    @Delete("delete from setmeal_dish where setmeal_id=#{id};")
    void deleteByIdsWithDishon(Long id);
    @Select("select *from setmeal_dish where setmeal_id=#{id};")
    List<SetmealDish> findByIdAndDish(Long id);
}
